/*
 * author      : 吴中勤 
 * date        : 2018/8/22
 * description : sap推送 物料
 */

package com.deepexi.adapter.facade.sap.request;

import com.deepexi.adapter.common.BaseDto;
import com.google.gson.annotations.SerializedName;

import java.util.List;

public class SapPushMaterialBody extends SapPushBaseBody {

    /* 是否对库位可售 */
    public static class Warehouse extends BaseDto {
        @SerializedName("WERKS")
        private String shopCode;

        @SerializedName("LGORT")
        private String warehouseCode;

        @SerializedName("LGOBE")
        private String warehouseDesc;

        @SerializedName("AVAILABLE")
        private String warehouseAvailable;

        public String getShopCode() {
            return shopCode;
        }

        public void setShopCode(String shopCode) {
            this.shopCode = shopCode;
        }

        public String getWarehouseCode() {
            return warehouseCode;
        }

        public void setWarehouseCode(String warehouseCode) {
            this.warehouseCode = warehouseCode;
        }

        public String getWarehouseDesc() {
            return warehouseDesc;
        }

        public void setWarehouseDesc(String warehouseDesc) {
            this.warehouseDesc = warehouseDesc;
        }

        public String getWarehouseAvailable() {
            return warehouseAvailable;
        }

        public void setWarehouseAvailable(String warehouseAvailable) {
            this.warehouseAvailable = warehouseAvailable;
        }
    }

    /* 是否对门店可售 */
    public static class ShopSwitch extends BaseDto {
        @SerializedName("VKORG")
        private String shopCode;

        @SerializedName("AVAILABLE")
        private String shopAvailable;

        public String getShopCode() {
            return shopCode;
        }

        public void setShopCode(String shopCode) {
            this.shopCode = shopCode;
        }

        public String getShopAvailable() {
            return shopAvailable;
        }

        public void setShopAvailable(String shopAvailable) {
            this.shopAvailable = shopAvailable;
        }
    }

//    @SerializedName("KEYNUM")
//    private String keyNum;

    /* 物料编码 */
    @SerializedName("MATNR")
    private String materialCode;

    /* 物料外部编码 */
    @SerializedName("MATNR40")
    private String externalMaterialCode;

    /* 物料名称 */
    @SerializedName("MAKTX")
    private String materialName;

    /* 外部物料组 */
    @SerializedName("EXTWG")
    private String externalMaterialGroup;

    /* 物料组 */
    @SerializedName("MATKL")
    private String materialGroup;

    /* 物料对仓库对销售开关  */
    @SerializedName("LGORT_Items")
    private List<Warehouse> warehouseList;

    /* 物料对门店对销售开关 */
    @SerializedName("VKORG_Items")
    private List<ShopSwitch> shopSwitchList;


    // === set && get ===

//    public String getKeyNum() {
//        return keyNum;
//    }
//
//    public void setKeyNum(String keyNum) {
//        this.keyNum = keyNum;
//    }

    public String getExternalMaterialCode() {
        return externalMaterialCode;
    }

    public void setExternalMaterialCode(String externalMaterialCode) {
        this.externalMaterialCode = externalMaterialCode;
    }

    public String getExternalMaterialGroup() {
        return externalMaterialGroup;
    }

    public void setExternalMaterialGroup(String externalMaterialGroup) {
        this.externalMaterialGroup = externalMaterialGroup;
    }

    public List<ShopSwitch> getShopSwitchList() {
        return shopSwitchList;
    }

    public void setShopSwitchList(List<ShopSwitch> shopSwitchList) {
        this.shopSwitchList = shopSwitchList;
    }

    public String getMaterialCode() {
        return materialCode;
    }

    public void setMaterialCode(String materialCode) {
        this.materialCode = materialCode;
    }

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public String getMaterialGroup() {
        return materialGroup;
    }

    public void setMaterialGroup(String materialGroup) {
        this.materialGroup = materialGroup;
    }

    public List<Warehouse> getWarehouseList() {
        return warehouseList;
    }

    public void setWarehouseList(List<Warehouse> warehouseList) {
        this.warehouseList = warehouseList;
    }
}
